﻿using IBll;
using IDal;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bll
{
    public class StareBl : IIStareBll
    {
         public StareBl(IStateDal<Stare> stateD)
        {
            StateD = stateD;
        }

        public IStateDal<Stare> StateD { get; }

        /// <summary>
        /// /绑定
        /// </summary>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public List<Stare> stares()
        {
            try//异常处理
            {
                 return StateD.GetValues().ToList();


            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
